package com.rabbiter.oes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "考试管理表")
@TableName(value = "exam_manage")
public class ExamManage {

    @TableId(value = "examCode", type = IdType.AUTO)
    @ApiModelProperty(value = "试题编号")
    private Integer examCode;

    @TableField(value = "description")
    @ApiModelProperty(value = "该次考试介绍")
    private String description;

    @TableField(value = "source")
    @ApiModelProperty(value = "课程名称")
    private String source;

    @TableField(value = "paperId")
    @ApiModelProperty(value = "试卷编号")
    private Integer paperId;

    @TableField(value = "examDate")
    @ApiModelProperty(value = "考试日期")
    private String examDate;

    @TableField(value = "totalTime")
    @ApiModelProperty(value = "持续时长")
    private Integer totalTime;

    @TableField(value = "grade")
    @ApiModelProperty(value = "年级")
    private String grade;

    @TableField(value = "term")
    @ApiModelProperty(value = "学期")
    private String term;

    @TableField(value = "major_id")
    @ApiModelProperty(value = "专业")
    private Integer majorId;

    @TableField(exist = false)
    @ApiModelProperty(value = "专业")
    private String major;

    @TableField(value = "subject_id")
    @ApiModelProperty(value = "学科ID")
    private String subjectId;

    @TableField(exist = false)
    @ApiModelProperty(value = "学科")
    private String subject;

    @TableField(value = "college_id")
    @ApiModelProperty(value = "学院")
    private Integer collegeId;

    @TableField(exist = false)
    @ApiModelProperty(value = "学院")
    private String college;

    @TableField(value = "totalScore")
    @ApiModelProperty(value = "总分")
    private Integer totalScore;

    @TableField(value = "type")
    @ApiModelProperty(value = "考试类型")
    private String type;

    @TableField(value = "tips")
    @ApiModelProperty(value = "考试须知")
    private String tips;
}
